# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: handler.py
# Time: 10:40

from common.element.element import WebTools
from common.utils.read_util import OperationYaml


class ClicksHandler(WebTools):
    def __init__(self,driver,log):
        super().__init__(driver,log)
        self.page = OperationYaml("clicks.yaml").get_yaml()

    def get_clear_button(self):
        return self.get_element_wait(self.page.get("clear_button"))

    def get_dbl_ckick_me(self):
        return self.get_element_wait(self.page.get("dbl_ckick_me"))

    def get_ckick_me(self):
        return self.get_element_wait(self.page.get("ckick_me"))

    def get_right_click_me(self):
        return self.get_element_wait(self.page.get("right_click_me"))

    def get_name_text(self):
        return self.get_element_wait(self.page.get("name_text"))
